package com.yunxi.service.localService.impl.sat;

import com.yunxi.dao.sat.SatLostApplyMapper;
import com.yunxi.model.sat.SatLostApply;
import com.yunxi.sat.pojo.SatLostApplyVO;
import com.yunxi.service.localService.sat.SatLostApplyService;
import org.springframework.stereotype.Service;
import com.yunxi.core.service.ServiceImplPlus;

/**
 * <p>
 * 客户战败申请 服务实现类
 * </p>
 *
 * @author caoYong
 * @since 2019-07-11
 */
@Service
public class SatLostApplyServiceImpl extends ServiceImplPlus<SatLostApplyMapper, SatLostApply> implements SatLostApplyService {

    @Override
    public SatLostApplyVO getInfoById(String id) throws Exception {
        return baseMapper.getInfoById(id);
    }

    @Override
    public Integer queryCustomerOrder(SatLostApply satLostApply) throws Exception {
        return baseMapper.queryCustomerOrder(satLostApply);
    }

    /**
     * 清空客户信息上的销售顾问编号
     * @param customerNo
     * @throws Exception
     */
    @Override
    public void cleanSalesNo(String customerNo) throws Exception {
        baseMapper.cleanSalesNo(customerNo);
    }

    /**
     * 变更客户信息上的销售顾问编号
     * @param satLostApply
     * @throws Exception
     */
    @Override
    public void updateCustomerSales(SatLostApply satLostApply) throws Exception {
        baseMapper.updateCustomerSales(satLostApply);
    }
}
